package com.whmnx.my.ui.viewmodel;


import androidx.databinding.ObservableArrayList;
import androidx.databinding.ObservableList;

import com.whmnx.my.BR;
import com.whmnx.my.R;

import me.goldze.mvvmhabit.base.ItemViewModel;
import me.tatarka.bindingcollectionadapter2.ItemBinding;

/**
 *
 * @author goldze
 * @date 2018/7/18
 */

public class ViewPagerItemBodouViewModel2 extends ItemViewModel<BodouModel> {
    public String text;

    public ViewPagerItemBodouViewModel2(BodouModel viewModel, String text) {
        super(viewModel);
        this.text = text;
        for (int i = 0; i < 10; i++) {
           // observableList.add(new BodouItemViewModel(viewModel));
        }
    }

    //给RecyclerView添加ObservableList
    public ObservableList<BodouItemViewModel> observableList = new ObservableArrayList<>();
    //给RecyclerView添加ItemBinding
    public ItemBinding<BodouItemViewModel> itemBinding = ItemBinding.of(BR.viewModel, R.layout.my_item_bodou2);

}
